package com.atguigu.c_enum;

public class Demo {
    public static void main(String[] args) {
        //枚举类.枚举项
        Light red = Light.RED;

        //调用方法
        System.out.println("red.getDesc() = " + red.getDesc());


        //枚举类.枚举项
        Light yellow = Light.YELLOW;
        yellow.setDesc("黄灯加油冲");

        System.out.println("yellow.getDesc() = " + yellow.getDesc());
    }
}
